package com.softcloud.gamesbase;

/**
 * Created by 喆歆 on 2015/4/21.
 */
public class HeroSkill {

    private String skillName;
    private String skillDiscription;
    private int skillPicId;

    public HeroSkill(String skillName, String skillDiscription, int skillPicId) {
        this.skillName = skillName;
        this.skillDiscription = skillDiscription;
        this.skillPicId = skillPicId;
    }

    public String getSkillName(){
        return skillName;
    }
    public String getSkillDiscription(){
        return skillDiscription;
    }
    public int getSkillPicId(){
        return skillPicId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        HeroSkill heroSkill = (HeroSkill) o;

        if (skillPicId != heroSkill.skillPicId) return false;
        if (skillName != null ? !skillName.equals(heroSkill.skillName) : heroSkill.skillName != null)
            return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = skillName != null ? skillName.hashCode() : 0;
        result = 31 * result + skillPicId;
        return result;
    }
}
